from application.database import db,Base

class Article(db.Model, Base):
    __tablename__ = 'ncasm_article'
    uuid = db.Column(db.String(36), primary_key=True)
    summary = db.Column(db.String(255))
    title = db.Column(db.String(255))
    content_url = db.Column(db.String(255))
    pic_url = db.Column(db.String(255))
    status = db.Column(db.String(25))
    is_top = db.Column(db.Boolean)
    has_source = db.Column(db.Boolean)
    view_count = db.Column(db.Integer)
    create_at = db.Column(db.DateTime)
    create_by = db.Column(db.String(36))
    update_at = db.Column(db.DateTime)
    update_by = db.Column(db.String(36))
    update_times = db.Column(db.Integer)
    is_comment = db.Column(db.Boolean)
    is_draft = db.Column(db.Boolean)
    comment_count = db.Column(db.Integer)
    document_type = db.Column(db.String(10))
    group_id = db.Column(db.String(36))
    archive = db.Column(db.String(8))
    content = ""
    labels = []
    up = db.Column(db.Integer)
    down = db.Column(db.Integer)
